package com.yu.footballpromotionliveadmin.service;

import com.yu.footballpromotionliveadmin.dto.DTO;
import com.yu.footballpromotionliveadmin.page.PageInfo;
import com.yu.footballpromotionliveadmin.pojo.CompetitionRecord;
import com.yu.footballpromotionliveadmin.vo.CompetitionRecordView;

public interface CompetitionRecordService {

    /**
     * 查询全部
     * @return
     */
    public DTO<CompetitionRecord> getAllCompetitionRecords() throws Exception;
    /**
     * 根据主键查询
     * @return
     */
    public DTO<CompetitionRecord> getCompetitionRecordById(String crno) throws Exception;
    /**
     *删除
     * @param crno
     * @return
     */
    public DTO<CompetitionRecord> deleteCompetitionRecord(String crno) throws Exception;
    /**
     *  修改
     * @param competitionRecord
     * @return
     */
    public DTO<CompetitionRecord> updateCompetitionRecord(CompetitionRecordView competitionRecord)  throws Exception;
    /**
     *  增加
     * @param competitionRecord
     * @return
     */
    public DTO<CompetitionRecord> addCompetitionRecord(CompetitionRecordView competitionRecord)  throws Exception;

    public DTO<CompetitionRecord> getCompetitionRecordsByPage(PageInfo pageInfo) throws Exception;

    public DTO<CompetitionRecord> getCompetitionRecordsWithOrders(String crno)  throws Exception;

    public DTO<CompetitionRecord> activate(String crno)  throws Exception;

    public DTO<CompetitionRecord> lettory(String crno, String giftName)  throws Exception;
}
